what is the procedure in applying mortgage loan